list = ['a','b','c','d']
del list[1]
print(list)
print('-'*30)


list = ['a','b','c','d']
delname = list.pop(len(list)-1) # 默认删除最后一个元素
print(delname)
print(list)
print('-'*30)

list = ['a','b','c','d']
list.remove('b')
print(list)
print('-'*30)

list = ['a','b','c','d']
list.clear()
print(list)